<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.util.Constants,com.hs.core.utils.*" pageEncoding="UTF-8"%>
<%@ page import ="cn.ac.cintcm.dataconverge.researchsubject.domain.*,cn.ac.cintcm.dataconverge.researcher.domain.*" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String subjectId = request.getParameter("subjectId"); 
String modId = request.getParameter("modId"); 
String achId = request.getParameter("achId"); 
System.out.println("modid:" + modId);
%>


 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>科研项目管理与数据汇交平台</title>  
	<script language="javascript" type="text/javascript" src="<%=basePath %>js/My97DatePicker/WdatePicker.js"></script>
	<script language="javascript" src="<%=basePath %>index/Scripts/script.js"></script>
	<script language="javascript" src="<%=basePath %>js/common.js"></script>
	<link href="<%=basePath %>index/Themes/com/style.css" type="text/css" rel="stylesheet"></link>
	<script src='<%=basePath%>dwr/engine.js'></script>
     <script src='<%=basePath%>dwr/util.js'></script> 
     <script src='<%=basePath%>dwr/interface/subject.js'></script>
    <script type="text/javascript" language="javascript"> 
	function checkForm(){ 
	    var flag = false;
		if(isNull(form2.name.value)){
			alert("请填写成果名称");
			form2.name.focus();
			return false;
		} 
		var typeId = "";
		var embodyId = "";
		var embodyForm = document.getElementsByName("embodyForm");
		var type = document.getElementsByName("type");
		for(var i=0;i<type.length;i++){
		   if(type[i].checked){
		      typeId = type[i].value;
		   }
		}
		for(var j=0;j<embodyForm.length;j++){
		   if(embodyForm[j].checked){
		      embodyId = embodyForm[i].value; 
		   }
		}
		if("" == typeId){
			alert("请选择成果类型");
			return false;
		}
		if("" == embodyId){
			alert("请选择成果体现形式");
			return false;
		}
		return true;
	} 
        
	function saveData(modId){
		if(checkForm()){ 
		   form2.action = "<%=path%>/achieve.htm?action=saveData&modId="+modId;
		   form2.submit();
	    } 
	}
	function changeUrl(modId){
	   var obj = parent.frames("middleFrame"); 
	   if(null != obj)
	       obj.location.href = "<%=path%>/achieve.htm?action=addView&modId="+modId+"&achId=<%=achId%>"; 
	}
</script>  
</head>
<body class="rtm_body" scroll=no>
<form name="form2" action="" method="post">
    <div class="r_rtm_tb_mg1">
        <div class="r_rtm_tb1">
            <img src="<%=path %>/index/Themes/com/idt_tb_pass.gif" /><span>&nbsp;成果填报</span>
        </div>
    </div>
    <div style="margin-top:0px;height:50px">
       <table class="idt_tle_mg" cellspacing="0" border="0" cellpadding="0" width="100%">
         <tr>
             <td  width="2%">
                 <img id="imgForm1" src="<%=path %>/index/Themes/com/<%if("1".equals(modId)){out.print("prj_green.gif");}else{out.print("prj_red.gif");} %>"></td>
             <td class="idt_tle_f1" width="10%"><font size="2"><b><a href="#" onclick="changeUrl('1')">基本信息</a></b></font></td>
             <%if(null != achId&&!"".equals(achId)&&!"null".equals(achId)) {%>
             <td  width="2%">
                 <img id="imgForm2" src="<%=path %>/index/Themes/com/<%if("2".equals(modId)){out.print("prj_green.gif");}else{out.print("prj_red.gif");} %>"></td>
             <td class="idt_tle_f1" width="10%"><font size="2"><b><a href="#" onclick="changeUrl('2')">内容信息</a></b></font></td>
             <td  width="2%">
                 <img id="imgForm3" src="<%=path %>/index/Themes/com/<%if("3".equals(modId)){out.print("prj_green.gif");}else{out.print("prj_red.gif");} %>"></td>
             <td class="idt_tle_f1" width="10%"><font size="2"><b><a href="#" onclick="changeUrl('3')">管理信息</a></b></font></td>
             <td  width="2%">
                 <img id="imgForm4" src="<%=path %>/index/Themes/com/<%if("4".equals(modId)){out.print("prj_green.gif");}else{out.print("prj_red.gif");} %>"></td>
             <td class="idt_tle_f1" width="10%"><font size="2"><b><a href="#" onclick="changeUrl('4')">应用情况</a></b></font></td>
             <td  width="2%">
                 <img id="imgForm6" src="<%=path %>/index/Themes/com/<%if("5".equals(modId)){out.print("prj_green.gif");}else{out.print("prj_red.gif");} %>"></td>
                 
             <td class="idt_tle_f1" width="10%"><font size="2"><b><a href="#" onclick="changeUrl('5')">成果完成人</a></b></font></td>
             <td  width="2%" nowrap>
                 <img id="imgForm6" src="<%=path %>/index/Themes/com/<%if("6".equals(modId)){out.print("prj_green.gif");}else{out.print("prj_red.gif");} %>"></td>
             <td class="idt_tle_f1" width="15%"><font size="2"><b><a href="#" onclick="changeUrl('6')">成果完成单位</a></b></font></td>
             <%} %>
             <td width="*">&nbsp;</td>
         </tr>
     </table>
                       
   </div> 
</form>
         
</body>
</html> 